package org.user.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.user.domain.pojo.UserLogin;
import org.user.domain.pojo.UserRegister;


@Mapper
public interface UserMapper {
    //根据手机号查询手机号和密码
    @Select("SELECT phone,password from oruser where phone=#{phone}")
    UserLogin getUserLoginByPhone(String phone);

    //进行用户注册
    @Insert("INSERT INTO oruser(phone,password) values (#{phone},#{password})")
    void userRegister(UserRegister userRegister);


}
